package com.example.module_service.member

import android.os.Bundle
import android.widget.ImageView
import androidx.activity.enableEdgeToEdge
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.alibaba.android.arouter.facade.annotation.Route
import com.blankj.utilcode.util.ToastUtils
import com.example.lib_common.view.view.BaseMvvmActivity
import com.example.lib_image.glide.glide.GlideUtil
import com.example.module_service.R
import com.example.module_service.databinding.ActivityMemberBinding
import com.example.module_service.databinding.ActivityMerchantBinding
import com.example.module_service.vm.MemberViewModel
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
@Route(path = "/module_service/MemberActivity")
class MemberActivity : BaseMvvmActivity<ActivityMemberBinding>() {

    private val memberAdapter=MemberAdapter()
    private val memberViewModel:MemberViewModel by viewModels()


    override fun getLayoutId(): Int =R.layout.activity_member

    override fun initViews() {

        memberViewModel.getMember(9)
        memberViewModel.mSuccessLiveData.observe(this){
           binding.memberTv.text=it.data.membershipLevel

        }

    }

    override fun getActivityState(state: Bundle) {
        TODO("Not yet implemented")
    }

    override fun saveActivityState(outState: Bundle) {
        TODO("Not yet implemented")
    }

}